#include <iostream>
#include <stdint.h>
#include "../../../plcc/event_queue/Queue.h"
using namespace std;

int main() {
  Queue<uint32_t> q;
  Type<uint32_t> *t;
  for (int i=1; i <10; i++) {
    q.EnQueue(i);
    cout << "enqueue :" << i << endl;
  }
  while (!q.IsEmpty()) {
    t = q.DeQueue();
    cout << "dequeue :" << t->opcode() << endl;
    delete t;
    cout << "dequeue :" << t->opcode() << endl;
  }
}
